package com.mjf.process_control;

public class WhileUse {

    public static void main(String[] args) {

        int i = 1;
        int j = 2;

        //--while
        while (i == j) {
            System.out.println("i等于j");
        }

        //--do while
        do {
            System.out.println("i不等于j");
        } while (i != j);
    }
}
